namespace Forging2.DataBase.QID_IGDATA_ZY
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class dy_workrecord
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public dy_workrecord()
        {
            dy_workrecord_detail = new HashSet<dy_workrecord_detail>();
        }

        public int ID { get; set; }

        [Key]
        [StringLength(50)]
        public string WorkRecord_id { get; set; }

        [Required]
        [StringLength(50)]
        public string ForgeNo { get; set; }

        [Required]
        [StringLength(50)]
        public string ForgeName { get; set; }

        public byte RecordType { get; set; }

        [Required]
        [StringLength(50)]
        public string JobNo { get; set; }

        public byte LayerCount { get; set; }

        [Required]
        [StringLength(50)]
        public string Icmo_id { get; set; }

        [Required]
        [StringLength(50)]
        public string Route_id { get; set; }

        [Required]
        [StringLength(50)]
        public string WorkCellNo { get; set; }

        public byte CombineMethod { get; set; }

        public DateTime CreateDate { get; set; }

        public byte State { get; set; }

        public byte IsDelete { get; set; }

        public virtual dy_plan_icmo dy_plan_icmo { get; set; }

        public virtual dy_route_line dy_route_line { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<dy_workrecord_detail> dy_workrecord_detail { get; set; }
    }
}
